import {Image} from 'antd'
function useColumns () {
    const columns = [
        {
            title: '序号',
            render: (text, record, index) => {
                return <span>{index + 1}</span>
            }
        },
        {
            title: '产品名称',
            dataIndex: 'proname'
        },
        {
            title: '图片',
            dataIndex: 'img1',
            render(text, record, index) {
                return (
                    <Image src={text} style={{ width: 80, height: 80 }} />
                )
            }
        },
        {
            title: '价格',
            dataIndex: 'originprice'
        }
    ]
    return columns
}

export default useColumns